<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of index
 *
 * @author adrian
 */
class Index_Data_Index {
    
    private $article = array(
        "index" => array(
            "metatitle" => "Welcome to our PHP MVC Framework!",
            "metadescription" => "It's a simple PHP MVC Framework. This version does not use MySQL database!'",
            "metakeywords" => "php, framework, mvc, php framework, mvc framework, php mvc framework",
            "title" => "Welcome to our PHP MVC Framework",
            "content" => "<p>We wrote a PHP framework specifically for you. This framework is ideal for creating websites for SEO Service. This version does not use a database or even a text file. We have simplified the system up so that you can immediately use this framework.</p><p>The system is very light and very fast. This is made ​​especially for you. We look forward to your feedback and invite you to cooperate with us!</p>"
        ),
        "usage" => array(
            "metatitle" => "usage to our PHP MVC Framework!",
            "metadescription" => "How to usage my PHP MVC Framework? It's a very simple ...",
            "metakeywords" => "usage framework, php, mvc, framework, php mvc, mvc framework, usage mvc framework, usage php framework, php mvc framework",
            "title" => "Usage to our PHP MVC Framework",
            "content" => "<p>The index.php is a front controller of your appliaction, meaning that all page requests will go throught it. You are going to use some code to route all user requests to the appropriate files in the controllers folder. When we are done, your users will navigate pages using links like the following:</p>
<ul>
<li>http://yoursite.com/index.php?page1</li>
<li>http://yoursite.com/index.php?page2</li>
</li>http://yoursite.com/index.php?page3</li>

<h2>Setting up the Front Controller</h2>

<p>In ./configs/configuration.php you are going to define our web root and domain name so they are available to the whole application:</p>

<p>/**<br />
&nbsp;* ./configs/configuration.php<br />
&nbsp;*<br />
&nbsp;* main configuration file<br />
&nbsp;*/</p>

<p>/**<br />
&nbsp;* SERVER_ROOT<br />
&nbsp;*<br />
&nbsp;* main web application folder<br />
&nbsp;*/<br />
define(SERVER_ROOT, &quot;./&quot;);<br />
/**<br />
&nbsp;* SITE_ROOT<br />
&nbsp;*<br />
&nbsp;* main site address<br />
&nbsp;*/<br />
define(SITE_ROOT, &quot;http://localhost/~adrian/new-cms-system/&quot;)</p>

<p>Examples of controllers and models are in the zip file.</p>"
        ) 
    );
    
    public function __construct() {
       
    }
    
    public function getData($page){
        $article = $this->article[$page];
        return $article;
    }
    
}

?>
